function updateDocAchievement(){
    var list = $(".triagePerformance");
    var dataList = [];
    var id = $("#customerId",parent.document).val();
    for(var i=0;i<list.length;i++){
        var obj = list[i];
        var old = $(obj).find(".oldDoc").val();
        var changeDoc = $(obj).find(".changeDoc").val();
        if(old != changeDoc && changeDoc != ""){
            var deal ={};
            deal.id2 = $(obj).find(".id2").val();
            deal.isDo = 4;
            deal.customerId = $("#customerId",parent.document).val();
            deal.dealStatus = "已开单";
            deal.foldingPay = $(obj).find(".foldingPay").html();
            deal.doctor = $(obj).find(".changeDoc").val();
            dataList.push(deal);
        } else {
            alert("医生不能为空");
            return false;
        }
    }
    $.ajax({
        url: Feng.ctxPath + "/consultant/updateDocAchievement",
        dataType: "json",
        contentType: "application/json",
        data: JSON.stringify(dataList),
        type: "POST",
        success: function (data) {
            alert('操作成功！');
            parent.location.reload();
        }
    });
}